package com.cinc.mdm.modules.processBase.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 工序档案
 * @Author: jeecg-boot
 * @Date:   2022-07-21
 * @Version: V1.0
 */
@Data
@TableName("mdm_process_base")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mdm_process_base对象", description="工序档案")
public class MdmProcessBase implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**工序编号*/
	@Excel(name = "工序编号", width = 15)
    @ApiModelProperty(value = "工序编号")
    private String processNo;
	/**工序名称*/
	@Excel(name = "工序名称", width = 15)
    @ApiModelProperty(value = "工序名称")
    private String processName;
	/**计价类型*/
	@Excel(name = "计价类型", width = 15, dicCode = "mdm_process_price_type")
	@Dict(dicCode = "mdm_process_price_type")
    @ApiModelProperty(value = "计价类型")
    private String priceType;
	/**工作中心*/
	@Excel(name = "工作中心", width = 15, dictTable = "mdm_work_center", dicText = "name_code", dicCode = "id")
	@Dict(dictTable = "mdm_work_center", dicText = "name_code", dicCode = "id")
    @ApiModelProperty(value = "工作中心")
    private String workId;
	/**标准工时*/
	@Excel(name = "标准工时", width = 15)
    @ApiModelProperty(value = "标准工时")
    private BigDecimal standardHours;
	/**准备工时*/
	@Excel(name = "准备工时", width = 15)
    @ApiModelProperty(value = "准备工时")
    private BigDecimal prepareHours;
	/**等待工时*/
	@Excel(name = "等待工时", width = 15)
    @ApiModelProperty(value = "等待工时")
    private BigDecimal waitHours;
	/**单位*/
	@Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
	@Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private String unit;
	/**工价*/
	@Excel(name = "工价", width = 15)
    @ApiModelProperty(value = "工价")
    private BigDecimal empCost;
	/**助记器*/
	@Excel(name = "助记器", width = 15)
    @ApiModelProperty(value = "助记器")
    private String auxDesc;
	/**安排计划*/
	@Excel(name = "安排计划", width = 15)
    @ApiModelProperty(value = "安排计划")
    private String planFlag;
	/**安排派工*/
	@Excel(name = "安排派工", width = 15)
    @ApiModelProperty(value = "安排派工")
    private String dispatchFlag;
	/**安排报工*/
	@Excel(name = "安排报工", width = 15)
    @ApiModelProperty(value = "安排报工")
    private String reportFlag;
	/**启用标志*/
	@Excel(name = "启用标志", width = 15)
    @ApiModelProperty(value = "启用标志")
    private String enableFlag;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String comm;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
